﻿
#region 程序集引用区
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using SubSonic.DataProviders;
using SubSonic.Extensions;
using System.Linq.Expressions;
using SubSonic.Schema;
using System.Collections;
using SubSonic;
using SubSonic.Repository;
using System.ComponentModel;
using System.Data.Common;
using SubSonic.Query;
using System.Xml;
using System.Xml.Serialization;
using System.Reflection;
#endregion

namespace WebeTerm.Model{
    
    /// <summary>
    /// 文 件 名: CustomerInfo.cs
    /// CLR版本 : v2.0.50727
    /// 作   者 : lijun.hu
    /// 版    权: Copyright @2011 lijun.hu(FORCEN HU) 
    /// 电子邮箱：lijun.hu@shinsoft.net
    /// 说    明: 客户信息
    /// 生成日期: 2014年12月5日
    /// </summary>
    [Serializable]
    [Description(@"客户信息")]
    public partial class CustomerInfo:BaseModel, IModel{
        
        #region 构造函数
        /// <summary>
        /// 客户信息
        /// </summary>
        public CustomerInfo() : base(new CustomerInfoTable(null)) { 
            
        }               
        #endregion
        
        #region CustomerInfo属性列表
        System.Guid m_Id;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Guid  Id
        {
            get { return m_Id; }
            set
            {
                //if(m_Id!=value)
                {
                    m_Id=value;
                    UpdateColumn(@"Id");
                }
            }
        }
        
        System.String m_CustomerName;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  CustomerName
        {
            get { return m_CustomerName; }
            set
            {
                //if(m_CustomerName!=value)
                {
                    m_CustomerName=value;
                    UpdateColumn(@"CustomerName");
                }
            }
        }
        
        System.String m_CustomerEname;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  CustomerEName
        {
            get { return m_CustomerEname; }
            set
            {
                //if(m_CustomerEname!=value)
                {
                    m_CustomerEname=value;
                    UpdateColumn(@"CustomerEname");
                }
            }
        }
        
        System.String m_CustomerIdNo;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  CustomerIdNo
        {
            get { return m_CustomerIdNo; }
            set
            {
                //if(m_CustomerIdNo!=value)
                {
                    m_CustomerIdNo=value;
                    UpdateColumn(@"CustomerIdNo");
                }
            }
        }
        
        System.String m_CustomerTelephone;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  CustomerTelephone
        {
            get { return m_CustomerTelephone; }
            set
            {
                //if(m_CustomerTelephone!=value)
                {
                    m_CustomerTelephone=value;
                    UpdateColumn(@"CustomerTelephone");
                }
            }
        }
        
        System.String m_Email;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  Email
        {
            get { return m_Email; }
            set
            {
                //if(m_Email!=value)
                {
                    m_Email=value;
                    UpdateColumn(@"Email");
                }
            }
        }
        
        System.String m_Qq;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  QQ
        {
            get { return m_Qq; }
            set
            {
                //if(m_Qq!=value)
                {
                    m_Qq=value;
                    UpdateColumn(@"Qq");
                }
            }
        }
        
        System.String m_WeiXinNo;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  WeiXinNo
        {
            get { return m_WeiXinNo; }
            set
            {
                //if(m_WeiXinNo!=value)
                {
                    m_WeiXinNo=value;
                    UpdateColumn(@"WeiXinNo");
                }
            }
        }
        
        System.Guid? m_EmployeeId;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Guid?  EmployeeId
        {
            get { return m_EmployeeId; }
            set
            {
                //if(m_EmployeeId!=value)
                {
                    m_EmployeeId=value;
                    UpdateColumn(@"EmployeeId");
                }
            }
        }
        
        System.Guid? m_CompanyId;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Guid?  CompanyId
        {
            get { return m_CompanyId; }
            set
            {
                //if(m_CompanyId!=value)
                {
                    m_CompanyId=value;
                    UpdateColumn(@"CompanyId");
                }
            }
        }
        
        #endregion
        
        
        #region 关联父级
        private CompanyInfo m_FK_CUSTOMER_REFERENCE_COMPANYI;
        /// <summary>
        /// FK_CUSTOMER_REFERENCE_COMPANYI:未定义.
        /// <remarks>
        /// 外键名称：FK_CUSTOMER_REFERENCE_COMPANYI
        /// 主表名称：CompanyInfo
        /// 外键字段：Id
        /// </remarks>
        /// </summary>
        [Browsable(false)]
        [XmlIgnore()]
        public CompanyInfo FK_CUSTOMER_REFERENCE_COMPANYI{
            get{
                return m_FK_CUSTOMER_REFERENCE_COMPANYI;
            }
            set{
                m_FK_CUSTOMER_REFERENCE_COMPANYI=value;
            }
        }
        private EmployeeInfo m_FK_CUSTOMER_REFERENCE_EMPLOYEE;
        /// <summary>
        /// FK_CUSTOMER_REFERENCE_EMPLOYEE:员工信息.
        /// <remarks>
        /// 外键名称：FK_CUSTOMER_REFERENCE_EMPLOYEE
        /// 主表名称：EmployeeInfo
        /// 外键字段：Id
        /// </remarks>
        /// </summary>
        [Browsable(false)]
        [XmlIgnore()]
        public EmployeeInfo FK_CUSTOMER_REFERENCE_EMPLOYEE{
            get{
                return m_FK_CUSTOMER_REFERENCE_EMPLOYEE;
            }
            set{
                m_FK_CUSTOMER_REFERENCE_EMPLOYEE=value;
            }
        }
        #endregion
       
    }
} 



